import http from "@/utils/http2.js";
//查询客户
export function queryClient(data) {
  return http.post("/api/client/query", data);
}
//删除客户
export function deleteClient(ids){
  return http.delete("/api/client/delete?ids="+ids)
}
//查询联系人
export function queryContact(data){
  return http.post("/api/client/contact",data);
}
//保存
export function saveClient(data){
  return http.post("/api/client/add",data);
}
//修改
export function updateClient(data) {
  return http.put("/api/client/update",data);
}
//查询详情
export function getClient(id){
  return http.get("/api/client",{id});
}
